package com.ruoyi.dormitory.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 宿舍成员对象 tb_dormitory_member
 *
 * @author ruoyi
 * @date 2023-12-28
 */
public class TbDormitoryMember extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @Excel(name = "主键")
    private String id;

    /** 宿舍id */
    @Excel(name = "宿舍id")
    private String dormitoryId;

    /** 学生id */
    @Excel(name = "学生id")
    private String studentId;

    /** 床号 */
    @Excel(name = "床号")
    private Long bedNumber;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String phone;

    /** 状态(1:在住，2：退宿) */
    @Excel(name = "状态(1:在住，2：退宿)")
    private String status;

    /** 家庭住址 */
    @Excel(name = "家庭住址")
    private String homeAddress;

    /** 入住时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入住时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date checkInTime;

    /** 退宿时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "退宿时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date checkOutTime;

    /** 照片 */
    @Excel(name = "照片")
    private String picture;

    // 宿舍编号
    private String code;

    // 学生名称
    private String studentName;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getStudentName() {
        return studentName;
    }

    public void setStudentName(String studentName) {
        this.studentName = studentName;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setDormitoryId(String dormitoryId)
    {
        this.dormitoryId = dormitoryId;
    }

    public String getDormitoryId()
    {
        return dormitoryId;
    }
    public void setStudentId(String studentId)
    {
        this.studentId = studentId;
    }

    public String getStudentId()
    {
        return studentId;
    }
    public void setBedNumber(Long bedNumber)
    {
        this.bedNumber = bedNumber;
    }

    public Long getBedNumber()
    {
        return bedNumber;
    }
    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setHomeAddress(String homeAddress)
    {
        this.homeAddress = homeAddress;
    }

    public String getHomeAddress()
    {
        return homeAddress;
    }
    public void setCheckInTime(Date checkInTime)
    {
        this.checkInTime = checkInTime;
    }

    public Date getCheckInTime()
    {
        return checkInTime;
    }
    public void setCheckOutTime(Date checkOutTime)
    {
        this.checkOutTime = checkOutTime;
    }

    public Date getCheckOutTime()
    {
        return checkOutTime;
    }
    public void setPicture(String picture)
    {
        this.picture = picture;
    }

    public String getPicture()
    {
        return picture;
    }

    @Override
    public String toString() {
        return "TbDormitoryMember{" +
                "id='" + id + '\'' +
                ", dormitoryId='" + dormitoryId + '\'' +
                ", studentId='" + studentId + '\'' +
                ", bedNumber=" + bedNumber +
                ", phone='" + phone + '\'' +
                ", status='" + status + '\'' +
                ", homeAddress='" + homeAddress + '\'' +
                ", checkInTime=" + checkInTime +
                ", checkOutTime=" + checkOutTime +
                ", picture='" + picture + '\'' +
                ", code='" + code + '\'' +
                ", studentName='" + studentName + '\'' +
                '}';
    }
}
